vue创建项目, 报错 No Babel config file detected for.. | 您所在的位置:网站首页 › looking for pagemaker 701 non trial installer › vue创建项目, 报错 No Babel config file detected for.. |
Vue-Cli vue 创建新项目 首先安装新包: npm install -g @vue/cli # OR yarn global add @vue/cli 复制代码还需要安装 npm install -g @vue/cli-init #OR yarn global add @vue/cli-init 复制代码再开始创建项目 vue create hello-world 复制代码直接选用默认的, 然后运行 ... 静静的等待 安装完, 点开 main.js Parsing error: No Babel config file detected for /Users/imac/Documents/document/Vue/20220224/myapp/src/main.js. Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files.eslint 复制代码郁闷了, 刚创建的新项目为啥有问题的呢 ? 在 package.json 文件中增加 "requireConfigureFile": false 然后 npm install 就可以了 查看了一下网上, 很多说的如下 eslint 需要一个配置文件.eslintrc.js 复制代码我是是用 模板直接创建的, 没有这个文件, 所以解决方案如上: End |
CopyRight 2018-2019 实验室设备网 版权所有 |